// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_LOG
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstLogTable : TableInfo
    {
		public const string C_TableName = "MST_LOG";
		
		public const string C_LOG_ID = "LOG_ID";
		public const string C_FORM_NAME = "FORM_NAME";
		public const string C_LOG_TIME = "LOG_TIME";
		public const string C_LOG_TYPE = "LOG_TYPE";
		public const string C_LOG_STATUS = "LOG_STATUS";
		public const string C_PHASE = "PHASE";
		public const string C_DESCRIPTION = "DESCRIPTION";
		public const string C_EXCEPTION_TYPE = "EXCEPTION_TYPE";
		public const string C_EXCEPTION_MESSAGE = "EXCEPTION_MESSAGE";
		public const string C_MACHINE_NAME = "MACHINE_NAME";
		public const string C_PROCESS_NAME = "PROCESS_NAME";
		public const string C_THREAD_NAME = "THREAD_NAME";
		
		public MstLogTable()
        {
            _tableName = "MST_LOG";
        }
		
		protected static MstLogTable _current;
        public static MstLogTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstLogTable();

            _current.Add(C_LOG_ID, new ColumnInfo(C_LOG_ID,"LogId", true, typeof(string)));
            _current.Add(C_FORM_NAME, new ColumnInfo(C_FORM_NAME,"FormName", false, typeof(string)));
            _current.Add(C_LOG_TIME, new ColumnInfo(C_LOG_TIME,"LogTime", false, typeof(DateTime)));
            _current.Add(C_LOG_TYPE, new ColumnInfo(C_LOG_TYPE,"LogType", false, typeof(string)));
            _current.Add(C_LOG_STATUS, new ColumnInfo(C_LOG_STATUS,"LogStatus", false, typeof(string)));
            _current.Add(C_PHASE, new ColumnInfo(C_PHASE,"Phase", false, typeof(string)));
            _current.Add(C_DESCRIPTION, new ColumnInfo(C_DESCRIPTION,"Description", false, typeof(string)));
            _current.Add(C_EXCEPTION_TYPE, new ColumnInfo(C_EXCEPTION_TYPE,"ExceptionType", false, typeof(string)));
            _current.Add(C_EXCEPTION_MESSAGE, new ColumnInfo(C_EXCEPTION_MESSAGE,"ExceptionMessage", false, typeof(string)));
            _current.Add(C_MACHINE_NAME, new ColumnInfo(C_MACHINE_NAME,"MachineName", false, typeof(string)));
            _current.Add(C_PROCESS_NAME, new ColumnInfo(C_PROCESS_NAME,"ProcessName", false, typeof(string)));
            _current.Add(C_THREAD_NAME, new ColumnInfo(C_THREAD_NAME,"ThreadName", false, typeof(string)));
			
		}
		
		public ColumnInfo LOG_ID
        {
            get { return this[C_LOG_ID]; }
        }
		
		public ColumnInfo FORM_NAME
        {
            get { return this[C_FORM_NAME]; }
        }
		
		public ColumnInfo LOG_TIME
        {
            get { return this[C_LOG_TIME]; }
        }
		
		public ColumnInfo LOG_TYPE
        {
            get { return this[C_LOG_TYPE]; }
        }
		
		public ColumnInfo LOG_STATUS
        {
            get { return this[C_LOG_STATUS]; }
        }
		
		public ColumnInfo PHASE
        {
            get { return this[C_PHASE]; }
        }
		
		public ColumnInfo DESCRIPTION
        {
            get { return this[C_DESCRIPTION]; }
        }
		
		public ColumnInfo EXCEPTION_TYPE
        {
            get { return this[C_EXCEPTION_TYPE]; }
        }
		
		public ColumnInfo EXCEPTION_MESSAGE
        {
            get { return this[C_EXCEPTION_MESSAGE]; }
        }
		
		public ColumnInfo MACHINE_NAME
        {
            get { return this[C_MACHINE_NAME]; }
        }
		
		public ColumnInfo PROCESS_NAME
        {
            get { return this[C_PROCESS_NAME]; }
        }
		
		public ColumnInfo THREAD_NAME
        {
            get { return this[C_THREAD_NAME]; }
        }
		
		
		
	}
}

